import type { RequestResult } from "./base";

export type {
  RequestUiConfig,
  RequestConfig,
  RequestResult,
  RequestFailResult,
} from "./base";

/** 获取请求返回的数据主体类型 */
export type GetRequestResultData<
  T extends (...args: any[]) => Promise<RequestResult<any>>,
> = ReturnType<T> extends Promise<RequestResult<infer D>> ? D : never;

export * from "./user";
